package com.lxw.api.cms;

import com.lxw.framework.domain.cms.CmsConfig;
import com.lxw.framework.domain.cms.CmsPage;
import com.lxw.framework.domain.cms.request.QueryPageRequest;
import com.lxw.framework.domain.cms.response.CmsPageResult;
import com.lxw.framework.domain.course.response.CmsPostPageResult;
import com.lxw.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "页面管理",description = "页面管理CRUD操作")
public interface CmsPageControllerApi {
    //查询cms页面信息
    @ApiOperation(value = "分页条件查询页面信息")
    public QueryResponseResult findList(Integer page, Integer pageSize, QueryPageRequest qpr);

    @ApiOperation(value = "页面信息添加")
    CmsPageResult add(CmsPage cmsPage);

    @ApiOperation(value = "根据ID查询页面")
    CmsPage findById(String pageId);

    @ApiOperation(value = "页面信息编辑")
    CmsPageResult edit(String pageId,CmsPage cmsPage);


    @ApiOperation(value = "根据ID删除页面")
    CmsPageResult delById(String pageId);


    @ApiOperation(value = "获取模型数据")
    CmsConfig getModelData(String id);


    @ApiOperation(value = "页面发布")
    CmsPageResult postPage(String pageId);

    @ApiOperation("一键发布页面")
    CmsPostPageResult postPageQuick(CmsPage cmsPage);
}
